<template>
  <div class="school">
    <h2 @click="showname">学校名称：{{ name }}</h2>
    <h2>学校地址：{{ schoolAddress }}</h2>
   
  </div>
</template>

<script>
import {mixin,mixin01} from '../mixin'
// Vue.mixin(mixin)全局
// Vue.mixin(mixin01)
export default {
  name: "School",
  data () {
      return {
         name:'123',
         schoolAddress:"456"
      }
  },
 mixins: [mixin,mixin01]//如果里面有生命钩子mixins先执行组件后执行

};
</script>

<style>
.school {
  background-color: aqua;
}
</style>
